package day35;// write your code here

import java.util.Scanner;
public class Solution{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String str1 = scanner.nextLine();
            String str2 = scanner.nextLine();
            if(str1.contains("\"")){
                StringBuffer stringBuffer = new StringBuffer();
                int flag = 0;
                for (int i = 0; i < str1.length(); i++) {
                    if(str1.charAt(i) == '"'){
                        flag++;
                    }else if(flag % 2 == 0 && str1.charAt(i) == ','){
                        stringBuffer.append('#');
                    }
                    else{
                        stringBuffer.append(str1.charAt(i));
                    }
                }
                str1 = stringBuffer.toString();
                String[] str = str1.split("#");
                int i = 0;
                for (i = 0; i < str.length; i++) {
                    if(str[i].equals(str2)){
                        System.out.println("Ignore");
                        break;
                    }
                }
                if(i == str.length){
                    System.out.println("Important!");
                }
            }else {
                String[] str = str1.split(",");
                int i = 0;
                for (i = 0; i < str.length; i++) {
                    if(str[i].equals(str2)){
                        System.out.println("Ignore");
                        break;
                    }
                }
                if(i == str.length){
                    System.out.println("Important!");
                }
            }
        }
    }
}